package com.example.feigntest.service;

import com.example.feigntest.vo.User;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by vincent on 2018/5/17.
 */
@Component
public class FallBack implements HelloService {
    @Override
    public Integer add(Integer a, Integer b) {
        return -1;
    }

    @Override
    public String hello() {
        return "error";
    }

    @Override
    public Map<String, Object> sayMyName(User user) {
        return new HashMap<>();
    }
}
